package com.spic.job.api.factory;

import com.spic.common.core.domain.R;
import com.spic.job.api.RemoteFileService;
import com.spic.system.api.dto.SysFileRecord;
import lombok.extern.slf4j.Slf4j;
import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * @Description 文件服务调用
 * @Author AnQi
 * @Date 2021/11/26
 */
@Slf4j
@Component
public class RemoteFileFallbackFactory implements FallbackFactory<RemoteFileService> {

    @Override
    public RemoteFileService create(Throwable cause) {
        return new RemoteFileService() {

            @Override
            public void convertPDF() {
                log.error("转换PDF的URL记录失败");
            }
        };
    }
}
